package com.tedu.mybatis.mapper;

import com.tedu.mybatis.pojo.User;
import com.tedu.mybatis.pojo.UserVO1;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    /*@Insert("INSERT INTO user(username,password,nickname,created) " +
            "VALUES (#{username},#{password},#{nickname},#{created})")*/
    int insert(User user);

    /*
    * 根据用户id查询用户id以及其对应的所有微博信息
    * */
    UserVO1 selectUserVO1ById(Integer id);
}
